var path = require('path')
var gulp = require('gulp')
var cleanCSS = require('gulp-clean-css');
var cssWrap = require('gulp-css-wrap');

var id='theme2'
var customThemeName=`.custom-${id}`

gulp.task('css-wrap', function() {
  return gulp.src( path.resolve('./theme/index.css'))
    .pipe(cssWrap({selector:customThemeName}))
    .pipe(cleanCSS())
    .pipe(gulp.dest(`src/assets/css/theme/${id}`));
});

gulp.task('move-font', function() {
  return gulp.src(['theme/fonts/**']).pipe(gulp.dest(`src/assets/css/theme/${id}/fonts`));
});
